import request from '@/utils/request'

// 习题列表
export function practiseList(params) {
  return request({
    url: '/course/practise/list',
    method: 'get',
    params
  })
}

// 查询习题详细
export function getpractise(timeId) {
  return request({
    url: '/course/practise/' + timeId,
    method: 'get'
  })
}

// 新增习题
export function addpractise(data) {
  return request({
    url: '/course/practise',
    method: 'post',
    data: data
  })
}

// 修改习题
export function updatepractise(data) {
  return request({
    url: '/course/practise',
    method: 'put',
    data: data
  })
}

// 删除习题
export function delpractise(timeId) {
  return request({
    url: '/course/practise/' + timeId,
    method: 'delete'
  })
}